package net.csdn.business.common.domain.request.issue;

import lombok.Data;
import net.csdn.business.common.domain.validation.groups.System;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author likun
 * @date 2022/11/8 13:58
 */
@Data
public class IssuePinSortRequestDto implements Serializable {
    @NotBlank(message = "uid 不合法", groups = {System.class})
    private String uid;
    /**
     * 检测项目权限
     */
    @NotNull(message = "projectId 不合法")
    @Positive(message = "projectId 不合法")
    private Long projectId;

    @NotNull(message = "sorts 不合法")
    @Size(min = 1, message = "sorts 不合法")
    private List<Sort> sorts;

    @Data
    public static class Sort {
        private String id;

        private Integer sort;
    }
}